<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'It begins anew',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/09/06.jpg" alt="A roundabout in town" class="framed-centred-image" width="649" height="480"/>
<section id="health">
	<h2>Health</h2>
	<p>
		I measured my circumference to be 26 centimetres this morning.
		I&apos;m pretty sure this is a mild case of inconsistent measurements due to the squishy nature of flesh.
		I highly doubt I&apos;ve honesty lost two centimetres in a day.
	</p>
</section>
<section id="rest">
	<h2>Rest</h2>
	<p>
		I was all out of sorts today from the back and forth with my mother.
		I end up agreeing to give up part of my day of rest and relaxation, then she cancels on me.
		I ended up not even getting the bath I&apos;d planned for about a week, and the day wasn&apos;t very restful at all.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		School is back in session.
		Joy.
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			After checking the Windows instructions provided by the university for installing R, linked to in this discussion topic, I set about disregarding them; they were written up with Windows in mind.
			I&apos;m on Debian, a variant of Linux.
			On Linux, you can off course install things using a similar method as on Windows, but that&apos;s always the wrong way to do it.
			The first thing you should try on Linux is finding the correct package in you system&apos;s repository.
			On Linux, you should almost always install software from the system&apos;s repository, not third-party websites.
			But how does one locate a package for something called &quot;R&quot;?
			Searching for <code>r</code> will pull up every package with a letter &quot;r&quot; anywhere in its name.
		</p>
		<p>
			So I visited the <a href="https://www.r-project.org/">R Project website</a> for clues.
			I figured I could get some extended version of the name that could help me track down the package.
			No such luck.
			I did see info there saying that R is a part of the $a[GNU] project though.
			The Linux system is a combination of the Linux kernel and the $a[GNU] system utilities, so if something&apos;s a part of the $a[GNU] project, there&apos;s a high likelihood that there&apos;s a package for it in the repositories of most Linux distributions.
			Furthermore, most (though not all) of $a[GNU] is free.
			Debian doesn&apos;t include the proprietary components of $a[GNU] (most of which are manuals that the $a[GNU] people don&apos;t release under free licenses), but does include the free components.
			It was looking likely that I&apos;d have access to R itself in the repository if I could find it, though I&apos;d probably not have the user manual due to the attitude of the $a[GNU] developers.
			I just had to find that package name.
		</p>
		<p>
			I ran a quick <a href="https://www.startpage.com/do/search?query=r+language+debian">web search</a>, and found what I was looking for: <a href="https://packages.debian.org/sid/r-base"><code>r-base</code></a>.
			Running <code>sudo aptitude install r-base</code> started the process of installing the R language interpreter we need for class.
			I used the wait time to draft the beginning of my discussion post for the week, then looked for R in my application menu.
			To my surprise, it was in the graphics applications submenu, though clicking it opened up an R command prompt.
			Not graphical at all.
			I moved on to the instructions for testing R and found the university expects us to see this command prompt, so maybe certain commands cause R to draw something graphically or something.
			Either that, or the program was severely misclassified by whoever decided it was a graphics-related application.
			The program seems to work as expected, aside from the fact that it doesn&apos;t pop up a dialogue box when I close the command prompt.
			That must be something specific to the Windows version or something.
			On Linux, it&apos;s perfectly normal for command prompts to just close when you try to close them.
		</p>
		<p>
			It was only after installing R that I bothered to try to find the Linux instructions this discussion topic promised.
			Those instructions would have saved me some time.
			They tell exactly what package to look for: <a href="apt:r-base"><code>r-base</code></a>.
			At least I was able to verify once more that I had in fact installed the package the university expected for me to have.
		</p>
		<p>
			Anyway, I guess my only tip is to read the provided instructions.
			If you&apos;re not on Windows, the instructions you need are not linked to in this topic, but can be reached from the course&apos;s index page.
		</p>
	</blockquote>
</section>
END
);
